const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,

  // 配置后台项目的IP和端口号
  devServer: {
    "host": "localhost",
    "port": 8110
  },

  // 处理浏览器 `__VUE_PROD_HYDRATION_MISMATCH_DETAILS__` 警告，非强迫症无需处理
  chainWebpack: (config) => {
    config.plugin('define').tap((definitions) => {
      Object.assign(definitions[0], {
        __VUE_OPTIONS_API__: 'true',
        __VUE_PROD_DEVTOOLS__: 'false',
        __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false'
      })
      return definitions
    })
  },


})
